package com.yu.loadBalance;

import com.yu.annotation.SPI;

import java.util.List;

/**
 * @PackageName: com.yu.loadBalance
 * @Description:
 * @Version: v1.0.0
 * @Author: yuweilin
 * @Date: 10:43
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/2/6      yuweilin         v1.0.0               新建
 */
@SPI
public interface LoadBalance {
    /**
     * 从服务地址列表里面选择一个
     * @param serviceAddresses
     * @return
     */
    String selectServiceAddress(List<String> serviceAddresses);
}
